<template>
  <div class="about">
    <h1>This is an about page</h1>
    <div>
    请输入第一个加数:<input v-model="myplush.num1"><br>
    请输入第二个加数:<input v-model="myplush.num2"><br>
    <button @click="js">计算</button><br>
    计算{{myplush.num1}}+{{myplush.num2}}结果是:{{myplush.result}}
  </div>
  </div>
</template>
<script>
export default {
  name: 'aboutView',
  data: function () {
    return {
      myplush: {
        num1: 0,
        num2: 0,
        result: 0
      }
    }
  },
  methods: {
    js: function () {
      this.myplush.result = parseInt(this.myplush.num1) + parseInt(this.myplush.num2)
    }
  }
}
</script>
